﻿using SimpleESBCore.Implement;
using SimpleESBCore.Implement.Datas;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleESBCore.Interfaces
{
    public interface IClient
    {
        void Connect();
        void DisConnect();
        void Publish(EventBase eventBase);
        void CreateTopic(string topicName);
        void DeleteTopic(string topicName);
        void RegisterHandler(IHandler<DataSourceBase> handler);
    }
}
